<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="format-detection" content="telephone=no"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><link rel="icon" href="/lhnblog/images/icons/favicon16x16.png?v=2.0.1" type="image/png" sizes="16x16"><link rel="icon" href="/lhnblog/images/icons/favicon32x32.png?v=2.0.1" type="image/png" sizes="32x32"><meta name="description" content="VSCode配置                           更换主题       ctrl+shift+p 后输入Preferences Color Theme进行选择                     图标主题       ctrl+shift+p 后输入Preferences File Icon Theme进行选择">
<meta property="og:type" content="article">
<meta property="og:title" content="vscode配置">
<meta property="og:url" content="https://szwyz.gitee.io/lhnblog/2020/06/28/vscode%E9%85%8D%E7%BD%AE/index.html">
<meta property="og:site_name" content="Szwyz&#39;s Blog">
<meta property="og:description" content="VSCode配置                           更换主题       ctrl+shift+p 后输入Preferences Color Theme进行选择                     图标主题       ctrl+shift+p 后输入Preferences File Icon Theme进行选择">
<meta property="og:locale" content="en_US">
<meta property="article:published_time" content="2020-06-28T12:23:48.182Z">
<meta property="article:modified_time" content="2020-06-29T03:59:27.063Z">
<meta property="article:author" content="Szwyz">
<meta name="twitter:card" content="summary"><meta name="keywords" content="Szwyz, Szwyz's Blog"><meta name="description" content=""><title>vscode配置 | Szwyz's Blog</title><link ref="canonical" href="https://szwyz.gitee.io/lhnblog/2020/06/28/vscode%E9%85%8D%E7%BD%AE/"><link rel="dns-prefetch" href="https://cdn.jsdelivr.net"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.12.1/css/all.min.css" type="text/css"><link rel="stylesheet" href="/lhnblog/css/index.css?v=2.0.1"><script>var Stun = window.Stun || {};
var CONFIG = {
  root: '/lhnblog/',
  algolia: undefined,
  fontIcon: {"prompt":{"success":"fas fa-check-circle","info":"fas fa-arrow-circle-right","warning":"fas fa-exclamation-circle","error":"fas fa-times-circle"},"copyBtn":"fas fa-copy"},
  sidebar: {"offsetTop":"20px","tocMaxDepth":6},
  header: {"enable":true,"showOnPost":true,"scrollDownIcon":true},
  postWidget: {"endText":true},
  nightMode: {"enable":true},
  back2top: {"enable":true},
  codeblock: {"style":"default","highlight":"light","wordWrap":false},
  reward: false,
  fancybox: false,
  zoomImage: {"gapAside":"20px"},
  galleryWaterfall: undefined,
  lazyload: false,
  pjax: undefined,
  externalLink: {"icon":{"enable":true,"name":"fas fa-external-link-alt"}},
  shortcuts: undefined,
  prompt: {"copyButton":"Copy","copySuccess":"Copy Success","copyError":"Copy Error"},
  sourcePath: {"js":"js","css":"css","images":"images"},
};

window.CONFIG = CONFIG;</script><meta name="generator" content="Hexo 4.2.1"></head><body><div class="container" id="container"><header class="header" id="header"><div class="header-inner"><nav class="header-nav header-nav--fixed"><div class="header-nav-inner"><div class="header-nav-menubtn"><i class="fas fa-bars"></i></div><div class="header-nav-menu"><div class="header-nav-menu-item"><a class="header-nav-menu-item__link" href="/"><span class="header-nav-menu-item__icon"><i class="fas fa-home"></i></span><span class="header-nav-menu-item__text">Home</span></a></div><div class="header-nav-menu-item"><a class="header-nav-menu-item__link" href="/archives/"><span class="header-nav-menu-item__icon"><i class="fas fa-folder-open"></i></span><span class="header-nav-menu-item__text">Archives</span></a></div><div class="header-nav-menu-item"><a class="header-nav-menu-item__link" href="/categories/"><span class="header-nav-menu-item__icon"><i class="fas fa-layer-group"></i></span><span class="header-nav-menu-item__text">Categories</span></a></div></div><div class="header-nav-mode"><div class="mode"><div class="mode-track"><span class="mode-track-moon"></span><span class="mode-track-sun"></span></div><div class="mode-thumb"></div></div></div></div></nav><div class="header-banner"><div class="header-banner-info"><div class="header-banner-info__title">Szwyz's Blog</div><div class="header-banner-info__subtitle">蚍蜉撼树</div></div><div class="header-banner-arrow"><div class="header-banner-arrow__icon"><i class="fas fa-angle-down"></i></div></div></div></div></header><main class="main" id="main"><div class="main-inner"><div class="content-wrap" id="content-wrap"><div class="content" id="content"><!-- Just used to judge whether it is an article page--><div id="is-post"></div><div class="post"><header class="post-header"><h1 class="post-title">vscode配置</h1><div class="post-meta"><span class="post-meta-item post-meta-item--createtime"><span class="post-meta-item__icon"><i class="far fa-calendar-plus"></i></span><span class="post-meta-item__info">Created</span><span class="post-meta-item__value">2020-06-28</span></span><span class="post-meta-item post-meta-item--updatetime"><span class="post-meta-item__icon"><i class="far fa-calendar-check"></i></span><span class="post-meta-item__info">Updated</span><span class="post-meta-item__value">2020-06-29</span></span></div></header><div class="post-body">
        <h1 id="VSCode配置">
          <a href="#VSCode配置" class="heading-link"><i class="fas fa-link"></i></a>VSCode配置</h1>
      
        <h3 id="更换主题">
          <a href="#更换主题" class="heading-link"><i class="fas fa-link"></i></a>更换主题</h3>
      <p>ctrl+shift+p 后输入Preferences Color Theme进行选择</p>

        <h4 id="图标主题">
          <a href="#图标主题" class="heading-link"><i class="fas fa-link"></i></a>图标主题</h4>
      <p>ctrl+shift+p 后输入Preferences File Icon Theme进行选择</p>

        <h3 id="字号等设置">
          <a href="#字号等设置" class="heading-link"><i class="fas fa-link"></i></a>字号等设置</h3>
      <p>ctrl+，</p>

        <h4 id="自动保存">
          <a href="#自动保存" class="heading-link"><i class="fas fa-link"></i></a>自动保存</h4>
      <p>设置中 save搜索 在Auto Save选项中选择afterDelay</p>

        <h2 id="主命令框">
          <a href="#主命令框" class="heading-link"><i class="fas fa-link"></i></a>主命令框</h2>
      <p><code>F1</code> 或 <code>Ctrl+Shift+P</code>: 打开命令面板。在打开的输入框内，可以输入任何命令，例如：</p>
<ul>
<li>按一下 <code>Backspace</code> 会进入到 <code>Ctrl+P</code> 模式</li>
<li>在 <code>Ctrl+P</code> 下输入 <code>&gt;</code> 可以进入 <code>Ctrl+Shift+P</code> 模式</li>
</ul>
<p>在 <code>Ctrl+P</code> 窗口下还可以:</p>
<ul>
<li>直接输入文件名，跳转到文件</li>
<li><code>?</code> 列出当前可执行的动作</li>
<li><code>!</code> 显示 <code>Errors</code>或 <code>Warnings</code>，也可以 <code>Ctrl+Shift+M</code></li>
<li><code>:</code> 跳转到行数，也可以 <code>Ctrl+G</code> 直接进入</li>
<li><code>@</code> 跳转到 <code>symbol</code>（搜索变量或者函数），也可以 <code>Ctrl+Shift+O</code> 直接进入</li>
<li><code>@</code> 根据分类跳转 <code>symbol</code>，查找属性或函数，也可以 <code>Ctrl+Shift+O</code> 后输入:进入</li>
<li><code>#</code> 根据名字查找 <code>symbol</code>，也可以 <code>Ctrl+T</code></li>
</ul>

        <h2 id="常用快捷键">
          <a href="#常用快捷键" class="heading-link"><i class="fas fa-link"></i></a>常用快捷键</h2>
      
        <h3 id="编辑器与窗口管理">
          <a href="#编辑器与窗口管理" class="heading-link"><i class="fas fa-link"></i></a>编辑器与窗口管理</h3>
      <ol>
<li>打开一个新窗口： <code>Ctrl+Shift+N</code></li>
<li>关闭窗口： <code>Ctrl+Shift+W</code></li>
<li>同时打开多个编辑器（查看多个文件）</li>
<li>新建文件 <code>Ctrl+N</code></li>
<li>文件之间切换 <code>Ctrl+Tab</code></li>
<li>切出一个新的编辑器（最多 <code>3</code> 个） <code>Ctrl+\</code>，也可以按住 <code>Ctrl</code> 鼠标点击 <code>Explorer</code> 里的文件名</li>
<li>左中右 <code>3</code> 个编辑器的快捷键 <code>Ctrl+1</code> <code>Ctrl+2</code> <code>Ctrl+3</code></li>
<li><code>3</code> 个编辑器之间循环切换 <code>Ctrl+</code></li>
<li>编辑器换位置， <code>Ctrl+k</code>然后按 <code>Left</code>或 <code>Right</code></li>
</ol>

        <h3 id="代码编辑">
          <a href="#代码编辑" class="heading-link"><i class="fas fa-link"></i></a>代码编辑</h3>
      
        <h4 id="格式调整">
          <a href="#格式调整" class="heading-link"><i class="fas fa-link"></i></a>格式调整</h4>
      <ol>
<li>代码行缩进 <code>Ctrl+[</code> 、 <code>Ctrl+]</code></li>
<li><code>Ctrl+C</code> 、 <code>Ctrl+V</code> 复制或剪切当前行/当前选中内容</li>
<li>代码格式化： <code>Shift+Alt+F</code>，或 <code>Ctrl+Shift+P</code> 后输入 <code>format code</code></li>
<li>上下移动一行： <code>Alt+Up</code> 或 <code>Alt+Down</code></li>
<li>向上向下复制一行： <code>Shift+Alt+Up</code> 或 <code>Shift+Alt+Down</code></li>
<li>在当前行下边插入一行 <code>Ctrl+Enter</code></li>
<li>在当前行上方插入一行 <code>Ctrl+Shift+Enter</code></li>
</ol>

        <h4 id="光标相关">
          <a href="#光标相关" class="heading-link"><i class="fas fa-link"></i></a>光标相关</h4>
      <ol>
<li>移动到行首： <code>Home</code></li>
<li>移动到行尾： <code>End</code></li>
<li>移动到文件结尾： <code>Ctrl+End</code></li>
<li>移动到文件开头： <code>Ctrl+Home</code></li>
<li>移动到定义处： <code>F12</code></li>
<li>定义处缩略图：只看一眼而不跳转过去 <code>Alt+F12</code></li>
<li>移动到后半个括号： <code>Ctrl+Shift+]</code></li>
<li>选择从光标到行尾： <code>Shift+End</code></li>
<li>选择从行首到光标处： <code>Shift+Home</code></li>
<li>删除光标右侧的所有字： <code>Ctrl+Delete</code></li>
<li>扩展/缩小选取范围： <code>Shift+Alt+Left</code> 和 <code>Shift+Alt+Right</code></li>
<li>多行编辑(列编辑)：<code>Alt+Shift+鼠标左键</code>，<code>Ctrl+Alt+Down/Up</code></li>
<li>同时选中所有匹配： <code>Ctrl+Shift+L</code></li>
<li><code>Ctrl+D</code> 下一个匹配的也被选中 (在 sublime 中是删除当前行，后面自定义快键键中，设置与 <code>Ctrl+Shift+K</code> 互换了)</li>
<li>回退上一个光标操作： <code>Ctrl+U</code></li>
</ol>

        <h4 id="重构代码">
          <a href="#重构代码" class="heading-link"><i class="fas fa-link"></i></a>重构代码</h4>
      <ol>
<li>找到所有的引用： <code>Shift+F12</code></li>
<li>同时修改本文件中所有匹配的： <code>Ctrl+F12</code></li>
<li>重命名：比如要修改一个方法名，可以选中后按 <code>F2</code>，输入新的名字，回车，会发现所有的文件都修改了</li>
<li>跳转到下一个 <code>Error</code> 或 <code>Warning</code>：当有多个错误时可以按 <code>F8</code> 逐个跳转</li>
<li>查看 <code>diff</code>： 在 <code>explorer</code> 里选择文件右键 <code>Set file to compare</code>，然后需要对比的文件上右键选择 <code>Compare with file_name_you_chose</code></li>
</ol>

        <h4 id="查找替换">
          <a href="#查找替换" class="heading-link"><i class="fas fa-link"></i></a>查找替换</h4>
      <ol>
<li>查找 <code>Ctrl+F</code></li>
<li>查找替换 <code>Ctrl+H</code></li>
<li>整个文件夹中查找 <code>Ctrl+Shift+F</code></li>
</ol>

        <h3 id="显示相关">
          <a href="#显示相关" class="heading-link"><i class="fas fa-link"></i></a>显示相关</h3>
      <ol>
<li>全屏：<code>F11</code></li>
<li>zoomIn/zoomOut：<code>Ctrl +/-</code></li>
<li>侧边栏显/隐：<code>Ctrl+B</code></li>
<li>显示资源管理器 <code>Ctrl+Shift+E</code></li>
<li>显示搜索 <code>Ctrl+Shift+F</code></li>
<li>显示 Git <code>Ctrl+Shift+G</code></li>
<li>显示 Debug <code>Ctrl+Shift+D</code></li>
<li>显示 Output <code>Ctrl+Shift+U</code></li>
</ol>
</div><footer class="post-footer"><div class="post-ending ending"><div class="ending__text">------ END ------</div></div><div class="post-copyright copyright"><div class="copyright-author"><span class="copyright-author__name">Author: </span><span class="copyright-author__value"><a href="https://szwyz.gitee.io/lhnblog">Szwyz</a></span></div><div class="copyright-link"><span class="copyright-link__name">Link: </span><span class="copyright-link__value"><a href="https://szwyz.gitee.io/lhnblog/2020/06/28/vscode%E9%85%8D%E7%BD%AE/">https://szwyz.gitee.io/lhnblog/2020/06/28/vscode%E9%85%8D%E7%BD%AE/</a></span></div><div class="copyright-notice"><span class="copyright-notice__name">Copyright: </span><span class="copyright-notice__value">All articles in this blog are licensed under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en" rel="external nofollow" target="_blank">BY-NC-SA</a> unless stating additionally</span></div></div><nav class="post-paginator paginator"><div class="paginator-prev"><a class="paginator-prev__link" href="/lhnblog/2020/06/29/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F%EF%BC%88%E6%9C%AA%E5%AE%8C%EF%BC%89/"><span class="paginator-prev__icon"><i class="fas fa-angle-left"></i></span><span class="paginator-prev__text">设计模式（未完）</span></a></div><div class="paginator-next"><a class="paginator-next__link" href="/lhnblog/2020/06/28/Java%E5%AD%A6%E4%B9%A0%E8%B7%AF%E7%BA%BF/"><span class="paginator-prev__text">Java学习路线</span><span class="paginator-next__icon"><i class="fas fa-angle-right"></i></span></a></div></nav></footer></div></div></div><div class="sidebar-wrap" id="sidebar-wrap"><aside class="sidebar" id="sidebar"><div class="sidebar-nav"><span class="sidebar-nav-toc current">Catalog</span><span class="sidebar-nav-ov">Overview</span></div><section class="sidebar-toc"><ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#VSCode配置"><span class="toc-number">1.</span> <span class="toc-text">
          VSCode配置</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#更换主题"><span class="toc-number">1.0.1.</span> <span class="toc-text">
          更换主题</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#图标主题"><span class="toc-number">1.0.1.1.</span> <span class="toc-text">
          图标主题</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#字号等设置"><span class="toc-number">1.0.2.</span> <span class="toc-text">
          字号等设置</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#自动保存"><span class="toc-number">1.0.2.1.</span> <span class="toc-text">
          自动保存</span></a></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#主命令框"><span class="toc-number">1.1.</span> <span class="toc-text">
          主命令框</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#常用快捷键"><span class="toc-number">1.2.</span> <span class="toc-text">
          常用快捷键</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#编辑器与窗口管理"><span class="toc-number">1.2.1.</span> <span class="toc-text">
          编辑器与窗口管理</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#代码编辑"><span class="toc-number">1.2.2.</span> <span class="toc-text">
          代码编辑</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#格式调整"><span class="toc-number">1.2.2.1.</span> <span class="toc-text">
          格式调整</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#光标相关"><span class="toc-number">1.2.2.2.</span> <span class="toc-text">
          光标相关</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#重构代码"><span class="toc-number">1.2.2.3.</span> <span class="toc-text">
          重构代码</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#查找替换"><span class="toc-number">1.2.2.4.</span> <span class="toc-text">
          查找替换</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#显示相关"><span class="toc-number">1.2.3.</span> <span class="toc-text">
          显示相关</span></a></li></ol></li></ol></li></ol></section><!-- ov = overview--><section class="sidebar-ov hide"><div class="sidebar-ov-author"><div class="sidebar-ov-author__avatar"><img class="sidebar-ov-author__avatar_img" src="/images/icons/L.png" alt="avatar"></div><p class="sidebar-ov-author__text">Szwyz's Blog</p></div><div class="sidebar-ov-social"><a class="sidebar-ov-social-item" href="https://github.com/Sz-wyz" target="_blank" rel="noopener" data-popover="Github" data-popover-pos="up"><span class="sidebar-ov-social-item__icon"><i class="fab fa-github"></i></span></a><a class="sidebar-ov-social-item" href="1830413177@qq.com" target="_blank" rel="noopener" data-popover="social.email" data-popover-pos="up"><span class="sidebar-ov-social-item__icon"><i class="fas fa-envelope"></i></span></a></div><div class="sidebar-ov-state"><a class="sidebar-ov-state-item sidebar-ov-state-item--posts" href="/archives/"><div class="sidebar-ov-state-item__count">4</div><div class="sidebar-ov-state-item__name">Archives</div></a><a class="sidebar-ov-state-item sidebar-ov-state-item--categories" href="/categories/"><div class="sidebar-ov-state-item__count">0</div><div class="sidebar-ov-state-item__name">Categories</div></a></div><div class="sidebar-ov-cc"><a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en" target="_blank" rel="noopener" data-popover="Creative Commons" data-popover-pos="up"><img src="/lhnblog/images/cc-by-nc-sa.svg"></a></div></section><div class="sidebar-reading"><div class="sidebar-reading-info"><span class="sidebar-reading-info__text">You have read </span><span class="sidebar-reading-info__num">0</span></div><div class="sidebar-reading-line"></div></div></aside></div><div class="clearfix"></div></div></main><footer class="footer" id="footer"><div class="footer-inner"><div><span>Copyright © 2020</span><span class="footer__icon"><i class="fas fa-bolt"></i></span><span>Lhn</span></div><div><span>Powered by <a href="http://hexo.io/" title="Hexo" target="_blank" rel="noopener">Hexo</a></span><span> v4.2.1</span><span class="footer__devider">|</span><span>Theme - <a href="https://github.com/liuyib/hexo-theme-stun/" title="Stun" target="_blank" rel="noopener">Stun</a></span><span> v2.0.1</span></div></div></footer><div class="loading-bar" id="loading-bar"><div class="loading-bar__progress"></div></div><div class="back2top" id="back2top"><span class="back2top__icon"><i class="fas fa-rocket"></i></span></div></div><script src="https://cdn.jsdelivr.net/npm/jquery@v3.4.1/dist/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-animate@1.5.2/velocity.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-animate@1.5.2/velocity.ui.min.js"></script><script src="/lhnblog/js/utils.js?v=2.0.1"></script><script src="/lhnblog/js/stun-boot.js?v=2.0.1"></script><script src="/lhnblog/js/scroll.js?v=2.0.1"></script><script src="/lhnblog/js/header.js?v=2.0.1"></script><script src="/lhnblog/js/sidebar.js?v=2.0.1"></script><script src="/lhnblog/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"debug":false,"model":{"scale":1,"hHeadPos":0.5,"vHeadPos":0.618,"jsonPath":"/lhnblog/live2dw/assets/koharu.model.json"},"display":{"superSample":2,"width":150,"height":300,"position":"left","hOffset":0,"vOffset":-20},"mobile":{"show":true,"scale":0.5},"react":{"opacityDefault":0.7,"opacityOnHover":0.2},"log":false});</script></body></html>